package me.firstapp.repository.system;

import java.util.Map;

import me.firstapp.common.utils.Page;
import me.firstapp.module.system.Operator;
import me.firstapp.repository.base.EntityRepository;

public interface OperatorRepository extends EntityRepository<Operator> {

	Operator findOperatorById(Long id, Long apiClientId);
	
	Operator findOperatorByName(String name, Long apiClientId);

	Operator findOperatorByEmail(String email, Long apiClientId);

	Page<Operator> findOperatorPage(Integer pageNo, Integer pageSize, Map<String, Object> searchParams,
			String sortParam, String sortType, Long apiClientId);
}
